package com.vueapi.controller.web;

import com.vueapi.service.HjCategoryService;
import com.vueapi.utils.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname WebCategory
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/27 11:10
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/web/category")
public class WebCategoryController {

    @Resource
    private HjCategoryService categoryService;

    @GetMapping("/getCategories")
    public ResultUtils getCategories(){
        return categoryService.getCategories();
    }

}
